package com.newer.procurementsystem.service.impl;

import com.newer.procurementsystem.dao.EmployeeMapper;
import com.newer.procurementsystem.dto.EmpLikeBy;
import com.newer.procurementsystem.model.Employee;
import com.newer.procurementsystem.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public Employee selectInfoById(Integer userId) {
        return employeeMapper.selectInfoById(userId);
    }

    @Override
    public List<Employee> selectEmpLike(EmpLikeBy empLikeBy) {
        return employeeMapper.selectEmpLike(empLikeBy);
    }
}
